package com.ruoyi.system.domain.ro;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.valid.ValidInsertGroup;
import com.ruoyi.common.valid.ValidUpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 攻略游记业务对象 bs_strategy
 *
 * @author ruoyi
 * @date 2023-11-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "攻略游记业务", description = "攻略游记业务入参")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BsStrategyRO extends BaseEntity {

    @NotNull(message = "不能为空", groups = {ValidUpdateGroup.class})
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "创建人id", hidden = true)
    private Long createById;

    @NotBlank(message = "标题不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "标题")
    private String title;

    @NotBlank(message = "内容不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "内容")
    private String content;

    @NotBlank(message = "图片不能为空", groups = {ValidInsertGroup.class, ValidUpdateGroup.class})
    @ApiModelProperty(value = "图片")
    private String img;

    @NotBlank(message = "定位信息", groups = {ValidInsertGroup.class})
    @ApiModelProperty(value = "定位信息")
    private String address;

    @ApiModelProperty(value = "审核人-姓名")
    private String auditBy;
    @ApiModelProperty(value = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String auditTime;
    @ApiModelProperty(value = "审核状态  0待审核 1已通过 2已驳回")
    private String auditStatus;
    @ApiModelProperty(value = "拒绝原因（非必填）")
    private String auditReason;


}
